package com.app.factories.impl;

import com.app.factories.BetFactory;
import com.app.game.bet.Bet;
import com.app.game.bet.dozen.BetColumn;
import com.app.game.bet.dozen.BetGroup;
import com.app.game.other.Credit;

public class DozenBetFactory implements BetFactory{

	public static final int FIRST_DOZEN=0, SECOND_DOZEN = 1, THIRD_DOZEN = 2 , FIRST_COLUMN=3, SECOND_COLUMN = 4, THIRD_COLUMN = 5;
	@Override
	public Bet createBet(int type) {
			Bet bet = null;
			switch(type){
			case FIRST_COLUMN: bet = new BetColumn(BetColumn.Type.FIRST);break;
			case SECOND_COLUMN: bet = new BetColumn(BetColumn.Type.SECOND);break;
			case THIRD_COLUMN: bet = new BetColumn(BetColumn.Type.SECOND);break;
			case FIRST_DOZEN: bet = new BetGroup(BetGroup.Type.FIRST);break;
			case SECOND_DOZEN: bet = new BetGroup(BetGroup.Type.SECOND);break;
			case THIRD_DOZEN:bet = new BetGroup(BetGroup.Type.THIRD);break; 
			}
			
		return bet;
	}

}
